package com.easy.common.schedule;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import com.easy.modules.common.RecordEntity;

@Entity
@Table(name = "EASY_COMMON_TASK")
@DynamicUpdate(true)
@DynamicInsert(true)
public class TaskEntity extends RecordEntity {
	
	/** 任务CODE */
	private String task_code ;
	
	/** 任务类型名称 */
	private String task_type_name ;
	
	/** 任务名称 */
	private String task_name ;
	
	/** 任务类型 */
	private String task_type ;
	
	/** Job类路径 */
	private String task_job_class ;
	
	/** Cron表达式 */
	private String cron_expression ;
	
	/** 是否启动 */
	private String task_enable ;
	
	/** 任务备注 */
	private String task_remark ;
	
	/** 关联操作，如ID */
	private String linkAction ;
	
	public String getLinkAction() {
		return linkAction;
	}

	public void setLinkAction(String linkAction) {
		this.linkAction = linkAction;
	}

	public String getTask_code() {
		return task_code;
	}

	public void setTask_code(String task_code) {
		this.task_code = task_code;
	}

	public String getTask_name() {
		return task_name;
	}

	public void setTask_name(String task_name) {
		this.task_name = task_name;
	}

	public String getTask_type() {
		return task_type;
	}

	public String getTask_type_name() {
		return task_type_name;
	}

	public void setTask_type_name(String task_type_name) {
		this.task_type_name = task_type_name;
	}

	public void setTask_type(String task_type) {
		this.task_type = task_type;
	}

	public String getTask_job_class() {
		return task_job_class;
	}

	public void setTask_job_class(String task_job_class) {
		this.task_job_class = task_job_class;
	}

	public String getCron_expression() {
		return cron_expression;
	}

	public void setCron_expression(String cron_expression) {
		this.cron_expression = cron_expression;
	}

	public String getTask_enable() {
		return task_enable;
	}

	public void setTask_enable(String task_enable) {
		this.task_enable = task_enable;
	}

	public String getTask_remark() {
		return task_remark;
	}

	public void setTask_remark(String task_remark) {
		this.task_remark = task_remark;
	}
}
